# @Version : 1.0
# @Author  : 刘宇
# @File    : 10_tuple_define.py
# @Time    : 2025/10/13 09:50


# 元组
# 用圆括号括起来
tuple_a = (100, 200, 300, 400, 500)
tuple_b = ('red', 'green', 'blue', 'yellow')

print(f"元组内容是：{tuple_a} 元组类型:{type(tuple_a)}")

tuple_c=('red', 'green', 'blue', 'yellow','white','black')
# 索引是从0开始
print(f"第三个元素是：{tuple_c[2]}")